package com.hc.service.impl;

import com.hc.res.UserAddrItem;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.mapper.UserAddrMapper;
import com.hc.domain.UserAddr;
import com.hc.service.UserAddrService;

import javax.annotation.Resource;

@Service
public class UserAddrServiceImpl extends ServiceImpl<UserAddrMapper, UserAddr> implements UserAddrService {
    @Resource
    private UserAddrMapper userAddrMapper;
    @Override
    public int updateBatchSelective(List<UserAddr> list) {
        return baseMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<UserAddr> list) {
        return baseMapper.batchInsert(list);
    }
    @Override
    public List<UserAddrItem> selectUserAddrs(Long userId) {
        return userAddrMapper.selectUserAddrs(userId);
    }
}


